<?php
    session_start();
    require_once dirname(__FILE__) . '/shared/config/config.php';
    require_once DOCUMENT_ROOT . DIR_INCLUDE . 'html_generator.php';
    require_once DOCUMENT_ROOT . DIR_SHARED_LIBRARIES . 'lib_date.php';
    require_once DOCUMENT_ROOT . DIR_SHARED_LIBRARIES . 'lib_pager.php';
    require_once DOCUMENT_ROOT . DIR_SHARED_API . 'api_matches.php';
    require_once DOCUMENT_ROOT . DIR_SHARED_API . 'api_security.php';

    $title = 'Home Page';

    $username = filter_input(INPUT_GET, "username");
    $activate_code = filter_input(INPUT_GET, "activate_code");
    if (!api_security::activate($username, $activate_code)) {
        lib_redirect::Redirect('/page_not_found_404.php');
    }
?>

<!DOCTYPE html>
<!-- IE SECTION -->

<!--[if lt IE 7]>
<html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]>
<html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]>
<html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!-->
<html class="no-js"> <!--<![endif]-->

                     <!-- END IE SECTION -->
<html>
<head>
    <?php require_once DOCUMENT_ROOT . DIR_INCLUDE . 'head.php' ?>
    <script type="text/javascript">
        $(document).ready(function() {
            setTimeout(function() {
              window.location.href = "<?php echo LINK_ROOT; ?>/index.php";
            }, 5000);
                  });
    </script>
</head>
<body>
<?php require_once DOCUMENT_ROOT . DIR_INCLUDE . 'header.php' ?>

<!-- Title -->
<div class="section section-black">
    <div class="container">
        <div class="row">
            <div class="col-md-12">
                <div class="calltoaction-wrapper">
                    <h3>Login</h3>
                </div>
            </div>
        </div>
    </div>
</div>
<!-- End Title -->

<!-- List Matches -->
<div class="section">
    <div class="container">
        <div class="row">
            <div class="col-md-offset-3 col-sm-6">
                <div class="basic-login">
                    <form role="form" method="POST" action="?">
                        <?php
                            show_message("Activate Successully! You are now a member. Please wait for 5 second to login.", "", 0, 0);
                        ?>
                    </form>
                </div>
            </div>
            <!--					<div class="col-sm-7 social-login">
                                    <p>Or login with your Facebook or Twitter</p>
                                    <div class="social-login-buttons">
                                        <a href="#" class="btn-facebook-login">Login with Facebook</a>
                                        <a href="#" class="btn-twitter-login">Login with Twitter</a>
                                    </div>
                                    <div class="clearfix"></div>
                                    <div class="not-member">
                                        <p>Not a member? <a href="page-register.html">Register here</a></p>
                                    </div>
                                </div>-->
        </div>
    </div>
</div>
<!-- End List Matches -->

<?php require_once DOCUMENT_ROOT . DIR_INCLUDE . 'footer.php' ?>
</body>
</html>